package gate

import (
	"github.com/golang/protobuf/proto"
	. "leaf/core/error"
	. "leaf/core/msg"
	"reflect"
)

type MsgHandler struct {
	Func        func(agent Agent, msg *PMsg) *Error
	RequestId   uint16
	ReplyId     uint16
	RequestType reflect.Type
	ReplyType   reflect.Type
}

type InnerMsgHandler struct {
	Func        func(agent Agent, msg proto.Message) *Error
	RequestId   uint16
	RequestType reflect.Type
}
